package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 相关问题对象 q_relative
 * 
 * @author ruoyi
 * @date 2024-06-21
 */
public class QRelative extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关键字 */
    private Long rId;

    /** 问题id */
    @Excel(name = "问题id")
    private Long knowledgId;

    /** 相关问题id */
    @Excel(name = "相关问题id")
    private Long relativeId;

    public void setrId(Long rId) 
    {
        this.rId = rId;
    }

    public Long getrId() 
    {
        return rId;
    }
    public void setKnowledgId(Long knowledgId) 
    {
        this.knowledgId = knowledgId;
    }

    public Long getKnowledgId() 
    {
        return knowledgId;
    }
    public void setRelativeId(Long relativeId) 
    {
        this.relativeId = relativeId;
    }

    public Long getRelativeId() 
    {
        return relativeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rId", getrId())
            .append("knowledgId", getKnowledgId())
            .append("relativeId", getRelativeId())
            .toString();
    }
}
